file = open('C:/Users/xuchuanliangbt/Desktop/fsdownload/mysql_slow_query.log','r')
text_content = file.read()
file.close()
filtered_words = ['2024-02-26','2024-02-27','2024-02-28','2024-02-29']
filtered_result = ''
for line in text_content.split('\n'):
    if any(word in line for word in filtered_words):
        continue
    filtered_result += line + '\n'
print(filtered_result)